package ch.exploadingelephants.model;

import java.util.List;

import android.content.res.Resources;
import android.graphics.Bitmap;
import ch.exploadingelephants.graph.EndToken;
import ch.exploadingelephants.graph.Token;

import com.exploadingelephants.R;

/**
 * @author Sandro De Zanet
 * 
 */
public class EndItem extends MachineItem {

    /**
     * @param view
     */
    public EndItem() {
    }

    /*
     * (non-Javadoc)
     * 
     * @see ch.exploadingelephants.model.MachineItem#getBitmap()
     */
    @Override
    public List<Bitmap> getBitmaps(Resources resources) {
	return loadBitmaps(R.drawable.end, resources);
    }

    /*
     * (non-Javadoc)
     * 
     * @see ch.exploadingelephants.model.MachineItem#createGraphObject()
     */
    @Override
    public Token createGraphObject() {
	return new EndToken();
    }

    /*
     * (non-Javadoc)
     * 
     * @see ch.exploadingelephants.model.MachineItem#isDeletable()
     */
    @Override
    public boolean isDeletable() {
	return false;
    }

    /*
     * (non-Javadoc)
     * 
     * @see ch.exploadingelephants.model.MachineItem#copyItem()
     */
    @Override
    public MachineItem copyItem() {
	return new EndItem();
    }
}
